﻿@model IEnumerable<LandManager.Web.Models.Agency>

@{
    ViewBag.Title = "机构列表";
}

<style type="text/css">
    .divSty {
        padding: 25px 15px 5px 15px;
        font-family: 'Microsoft YaHei';
    }

    .tbSty {
        width: 100%;
        table-layout: fixed;
        border: solid #9D9D9D;
        border-width: 1px 0px 0px 1px;
    }

    .tdSty {
        word-wrap: break-word;
        text-align: center;
        vertical-align: middle;
        border: solid #9D9D9D;
        border-width: 0px 1px 1px 0px;
        font-size: 0.8em;
    }

    .tdheaderSty {
        text-align: center;
        vertical-align: middle;
        border: solid #9D9D9D;
        border-width: 0px 1px 1px 0px;
        font-size: 0.9em;
        height: 35px;
    }

    .headerSty {
        word-wrap: break-word;
        text-align: center;
        vertical-align: middle;
        background-color: #2573c7;
        color: #FFFFFF;
    }

    .selectSty {
        height: 26px;
        width: 210px;
    }

    .textStyle {
        height: 20px;
        width: 190px;
    }

    .texttdSty {
        padding-right: 15px;
    }

    .btnSty {
        width: 120px;
        height: 26px;
        vertical-align: central;
        margin: auto 10px auto 10px;
    }
</style>


<p>
    @Html.ActionLink("添加二级单位", "Create")
</p>

<div class="divSty">
    <table class="tbSty" cellspacing="0">
        <tr class="headerSty">
            <td class="tdheaderSty" style="width: 10%">二级单位名称</td>
            <td class="tdheaderSty" style="width: 5%">操作</td>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td class="tdSty">@item.agency_name</td>
                <td class="tdSty">@Html.ActionLink("修改", "Edit", new { id = item.agency_ID })</td>
            </tr>
        }
    </table>
</div>
